/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@float-bar-prefix-cls: ~'@{css-prefix}float-bar';

.@{float-bar-prefix-cls} {
  .component-css-vars-floatbar();

  position: fixed;
  top: 50%;
  right: 10px;
  z-index: 99999;
  border: 1px solid var(--ti-floatbar-border-color);
  box-shadow: var(--ti-floatbar-box-shadow);
  border-radius: var(--ti-floatbar-border-radius);
  overflow: hidden;
  background: var(--ti-floatbar-list-bg-color);

  ul {
    li {
      display: block;
      background: var(--ti-floatbar-list-bg-color);
      color: var(--ti-floatbar-list-text-color);
      font-size: var(--ti-floatbar-font-size);
      min-width: var(--ti-floatbar-list-item-min-width);
      min-height: var(--ti-floatbar-list-item-min-height);
      line-height: var(--ti-floatbar-list-line-height);
      text-align: center;

      &:hover {
        background: var(--ti-floatbar-list-hover-bg-color);
      }

      a {
        width: 100%;
        height: 100%;
        color: var(--ti-floatbar-list-text-color);
        cursor: pointer;
        outline: none;

        &:hover,
        &:focus {
          color: var(--ti-floatbar-list-hover-text-color);
          text-decoration: none;
        }
      }
    }
  }
}
